import { Component } from 'react'
import PropTypes from 'prop-types'

class Son extends Component {
    static propTypes = {
        count: PropTypes.number // count外部数据是数字类型，并且必须要传
    }
    static defaultProps = {
        count: 1000
    }
    render() {
        let { count } = this.props;
        return (
            <div>
                <h3>Son</h3>
                <p>son props count: {count}  {count * 10}</p>
            </div>
        )
    }
}
export default Son;